﻿using CoachingOrganizer.Logic.Models.Tools;
using CoachingOrganizer.WinPhone.UITools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace CoachingOrganizer.WinPhone.ViewModels.Tools
{
    public abstract class ToolViewModelBase : ViewModelBase
    {
        protected readonly ToolModelBase _baseModel;

        public ICommand SaveCommand
        {
            get { return GetCommand(() => SaveCommand, () => _baseModel.Save()); }
        }

        public ICommand RemoveCommand
        {
            get { return GetCommand(() => RemoveCommand, () => _baseModel.Remove()); }
        }

        public ToolViewModelBase(ToolModelBase model)
        {
            _baseModel = model;
        }
    }
}
